package main

import (
	"fmt"
	"log"
	"strconv"
)

func main() {
	fmt.Printf("What's you preferred number?\n")
	var input string
	fmt.Scanln(&input)
	fmt.Printf("you said: %v\n", input)
	num, err := strconv.Atoi(input)
	if err != nil {
		log.Fatalf("Can't parse %v as a number\n", input)
	}

	if num == 42 {
		fmt.Println("i knew it , good choice!")
	}
}
